Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process ANSWER-style defaults in apply_composite_tag #234

Merged
merged 5 commits into from
Mar 24, 2024

Conversation

olejandro
Copy link
Member

@olejandro olejandro commented Mar 22, 2024

This PR pushes the NZ model above 95%.

@olejandro olejandro marked this pull request as ready for review March 22, 2024 17:36
defaults = defaults.split(",")
else:
# Make it a list
defaults = list([defaults])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defaults = list([defaults])
defaults = [defaults]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the if else statemement, because str.split() returns a list.

logger.warning(
f"Expected ANSWER-style defaults, got {invalid_defaults}"
)
defaults = [default.split("=") for default in defaults]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defaults = [default.split("=") for default in defaults]
defaults = [default.split("=") for default in defaults if '=' in defaults]

Perhaps we want to do this for the non invalid defaults?

@olejandro olejandro merged commit c000f23 into main Mar 24, 2024
2 checks passed
@olejandro olejandro deleted the olex/answer-style-defaults branch March 24, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants